﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Xyz.Web.Reservation.PassengerService;

namespace Xyz.Web.Reservation.Repositories
{
    public class PassengerRepository : BaseRepository
    {
        PassengerServiceClient pasService = new PassengerServiceClient();

        public void InsertPassenger(List<PassengerDTO> pasList)
        {  
            foreach (PassengerDTO p in pasList)
            {
                pasService.InsertPassenger(p);
            }
        }

        public List<TitleDTO> GetTitles()
        {
            return pasService.GetTitles().ToList();
        }
    }
}